package com.biostime.qdingding.modules.qd.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biostime.qdingding.common.service.CrudService;
import com.biostime.qdingding.modules.qd.dao.TeacherDao;
import com.biostime.qdingding.modules.qd.entity.Teacher;

/**
 * 教师Service
 * @author king
 * @version 2015-11-05
 */
@Service
@Transactional(readOnly = true)
public class TeacherService extends CrudService<TeacherDao, Teacher> {
	@Override
	public List<Teacher> findList(Teacher entity) {
		dataScopeFilter(entity, "dsf", "id=a.center_id", "id=a.create_by");
		
		return super.findList(entity);
	}
}
